package com.test.mapper;
import com.test.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * Created by lms on 2017/10/25.
 */
@Mapper
public interface UserMapper {

    @Insert("insert into sys_user_info set u_name = #{userName}, mobile = #{mobile}")
    int insert(@Param("userName") String userName, @Param("mobile") String mobile);

    @Select("select * from sys_user_info")
    List<User> getUser();
}
